#FROM openjdk:8u121-jre-alpine
#WORKDIR /app
#COPY target/shopping-service-1.0-SNAPSHOT.jar /app/shopping-service.jar
#CMD ["java", "-jar", "shopping-service.jar"]
#EXPOSE 9083

FROM openjdk:17-alpine
WORKDIR /app
COPY target/shopping-service-1.0-SNAPSHOT.jar /app/shopping-service.jar
EXPOSE 9083

# 安装字体和字体配置工具
RUN apk update && \
    apk add --no-cache \
    fontconfig \
    ttf-dejavu \
    msttcorefonts-installer && \
    fc-cache -f -v

CMD ["java", "-jar", "shopping-service.jar"]
